package com.example.lawyer.databind.itemview;


import android.view.View;
import android.widget.ImageView;

import androidx.databinding.BindingAdapter;
import androidx.databinding.ObservableField;

import com.bumptech.glide.Glide;

public class NewListViewData {





    public ObservableField<String> coverurl = new ObservableField<>();
    public ObservableField<String> titles = new ObservableField<>();
    public ObservableField<String> times = new ObservableField<>();
    public ObservableField<String> numb = new ObservableField<>();

    @BindingAdapter("coverurl")
    public static void CoverUrl(View view, String url)
    {
        if(url==null)
        {
            return;
        }
        Glide.with(view).load(url).into((ImageView) view);
    }

}
